import * as Constants from '../Constants'

export interface Login{
  type: Constants.LOGIN
  payload: any
}
export interface Logout{
  type: Constants.LOGOUT
}

export type LoginActions = Login | Logout

export function Login(payload: any): Login {
  return {
    type: Constants.LOGIN,
    payload
  }
}
export function Logout(): Logout {
  return {
    type: Constants.LOGOUT
  }
}